package cn.xianshu.order.domain;

import cn.xianshu.basic.domain.BasicDomain;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 宠物购买订单
 */
@Data
public class OrderPet extends BasicDomain {
    // 0下单成功待支付 ，
    public static final int STATE_WAIT_PAY = 0;
    // 1支付成功待发货
    public static final int STATE_SUCCESS_PAY = 1;
    // 2用户取消订单
    public static final int STATE_USER_CANCEL = 2;
    // 3.订单超时自动取消
    public static final int STATE_PAY_OUTTIME_CANCEL = 3;
    // 4.支付失败
    public static final int STATE_PAY_FAIL = 4;
    // 5.已经发货
    public static final int STATE_DELIVERY_SUCCESS = 5;
    // 6.确认收货,订单关闭
    public static final int STATE_USER_CONFIRM = 6;

    // 银联
    public static final int PAY_TYPE_BANK= 1;
    // 微信
    public static final int PAY_TYPE_WECHAT= 2;
    // 支付宝
    public static final int PAY_TYPE_ALIPAY= 3;

    // 备注
    private String digest;
    // 状态
    private Integer state = STATE_WAIT_PAY;
    // 价格
    private BigDecimal totalPrice;
    private Integer totalCount;
    //订单号
    private String orderSn;
    private Date lastUpdateTime = new Date();
    //支付超时时间
    private Date payExpireTime;
    private Long userId;
    private Date createTime;
    private Integer payType;


}
